<!DOCTYPE html>
<html lang="zh-CN">
  <head>
  	<meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    
    <title>e8通用后台</title>
    
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="__PUBLIC__/admin/default/lib/bootstrap/bootstrap.min.css">
	<link rel="stylesheet" href="__PUBLIC__/admin/default/lib/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="__PUBLIC__/admin/default/lib/jquery-confirm/jquery.confirm.css">

    <!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    
    <!-- e8 style -->
    <link rel="stylesheet" href="__PUBLIC__/admin/default/css/common.css">
    <link rel="stylesheet" href="__PUBLIC__/admin/default/css/main.css">
    
  </head>
  
  <body>
  
  	<div class="topbar">
    	
        <!-- 面包屑 -->
        <include file="./Apps/Admin/View/Include/mbx.html" />

        <div class="topbar-search">
        	<form class="form-inline" role="form">
            	<div class="form-group">
            		<label class="sr-only" for="exampleInputEmail2">Email address</label>
            		<input type="email" class="form-control" id="exampleInputEmail2" placeholder="Enter email">
                    
                    <i class="fa fa-search color-gray"></i>
          		</div>
            </form>
        </div>
    </div><!-- /.topbar -->
    
    <div class="page-content">
    
        <div class="page-header col-sm-12">
        	<h1></h1>
        </div>
        
        <div class="col-sm-12">修改链接
			<div class="tabbable">
				<ul class="nav nav-tabs">
					<li class="active"><a href="__APP__/Link/index">友情链接</a></li>
					<li><a href="__APP__/Link/add">添加友情链接</a></li>
                    <li><a href="__APP__/Link/term">分类管理</a></li>
                    <li><a href="__APP__/Link/termadd">添加分类</a></li>
				</ul>

				<div class="tab-content">
					
					<div  class="tab-pane in active">
						<p class="title background-blue">修改链接</p>
                        <form action = "__APP__/Link/edit"  enctype="multipart/form-data" method="post">
							<input type="hidden" value="{$link.id}" name="id" />
							<table class="table-form" >
                                <tr>
                                    <th class = "table-name" width="150" >链接名称:</th>
                                    <td>
                                        <input class="form-control input-sm wid-3" type="text" placeholder="" value="{$link.name}" name="name">
                                    </td>                                
                                </tr>
                                <tr>
                                    <th>地址:</th>
                                    <td>
                                        <input class="form-control input-sm wid-3" type="text" placeholder="" value="{$link.url}" name="url">
                                    </td>                                
                                </tr>
                                 <tr>
                                    <th>所属分类:</th>
                                    <td>
                                        <select class="form-control input-sm wid-2" name ="termsid" /> 
                                            <option value="">==分类选择==</option>                                        	
                                            <foreach name ="termList" item= "term">
	                                           <option value ="{$term.id}"{$term.select} >{$term.name}</option>
	                                        </foreach>  
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <th>Logo:</th>
                                    <td>
                                    	<img src="{$Think.config.UPLOAD_PATH}{$link.image}" alt="" style="width: 120px; height: 120px;" class="img-thumbnail">
                                    	<input type="file" name="photo" id= "file"/>
                                    </td>                                
                                </tr>
                                  <tr>
                                	<th>打开方式</th>
                                    <td>
                                        <select class="form-control input-sm wid-2" name ="target">
                                            <if condition = "$link ['target'] == 0" >
	                                            <option value="0">默认方式打开</option>
	                                            <option value ="1">新窗口打开</option>
                                            <else />
                                            	<option value ="1">新窗口打开</option>
                                            	<option value="0">默认方式打开</option>
                                            </if>
                                        </select>
                                    </td>
                                </tr>   
                                <tr>
                                	<th>链接是否可见</th>
                                    <td>
                                        <select class="form-control input-sm wid-2" name ="visible"/> 
	                                        <if condition = "$link ['visible'] ==1 " >
	                                            <option value = "1">可见</option>
	                                            <option value = "0">不可见</option>
	                                        <else />
	                                            <option value = "0">不可见</option> 
	                                            <option value = "1">可见</option>
	                                        </if>  
                                        </select>
                                    </td>
                                 </tr>     
                                 <tr>
                                    <th>RSS地址:</th>
                                    <td>
                                        <input class="form-control input-sm wid-3" type="text" placeholder="" value="{$link.rss}" name="rss">
                                    </td>                                
                                </tr> 
                                <tr>
                                    <th>链接描述:</th>
                                    <td>
                                        <textarea class="form-control input-sm wid-4" rows="2" name="description">{$link.description}</textarea>
                                    </td>                                
                                </tr>
                                <tr>
                                    <th>链接详细介绍:</th>
                                    <td>
                                        <textarea class="form-control input-sm wid-4" rows="2" name ="notes" >{$link.notes}</textarea>
                                    </td>                                
                                </tr>        
                                
						     </table>

                          <div style="width:100%;height:60px;"></div>
                          <div class="admin-add">
                            <button type="submit" class="btn btn-primary btn-sm">修改</button>
                          </div>  
                        </form>
					</div>
                   
				</div>
			</div>
		</div><!-- /span -->
        
    </div><!-- /.page-content -->
    
	<script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
	<script src="__PUBLIC__/admin/default/lib/bootstrap/bootstrap.min.js"></script>
    <script src="__PUBLIC__/admin/default/lib/jquery-confirm/jquery.confirm.js"></script>
    <!--  -->
	<script src="__PUBLIC__/admin/default/js/e8.js"></script>
    
  </body>
</html>
